Matthias Clasen [Wed, 29 Aug 2012 22:15:46 +0000 (18:15 -0400)]
Revert "gtk: Fix exports for new symbols"
This reverts commit
07b33586e2552faece4a404c01cffb340ab7fc62.
Rico Tzschichholz [Wed, 29 Aug 2012 06:17:36 +0000 (08:17 +0200)]
gtk: Fix exports for new symbols
Chun-wei Fan [Wed, 29 Aug 2012 04:19:56 +0000 (12:19 +0800)]
Update config.h.win32.in
Make the entries more in line with those given in the generated
config.h.in.
Fran Diéguez [Tue, 28 Aug 2012 22:08:53 +0000 (00:08 +0200)]
Updated Galician translations
Aurimas Černius [Tue, 28 Aug 2012 19:17:30 +0000 (22:17 +0300)]
Updated Lithuanian translation
Cosimo Cecchi [Tue, 28 Aug 2012 15:51:18 +0000 (11:51 -0400)]
scrolled-window: fix rendering of scrolled window background
- don't poke at the children's background pattern at draw time, but just
call gtk_render_background()
- we should propagate rendering of the background to the overshoot
window when the state flags or the style changes, or it won't respond
to e.g. focused/backdrop changes correctly
https://bugzilla.gnome.org/show_bug.cgi?id=682854
Benjamin Otte [Tue, 28 Aug 2012 13:30:23 +0000 (15:30 +0200)]
css: Remove unused macro
GTK_CSS_DEPENDS_ON_EVERYTHING was used as a placeholder when
implementing dependencies. Now that dependencies are completely
implemented, it's no longer necessary.
Benjamin Otte [Tue, 28 Aug 2012 13:29:56 +0000 (15:29 +0200)]
cssimage: Implement dependencies for images
Benjamin Otte [Mon, 27 Aug 2012 16:39:46 +0000 (18:39 +0200)]
cssvalue: Implement dependency tracking for gradients
Benjamin Otte [Mon, 27 Aug 2012 15:52:02 +0000 (17:52 +0200)]
cssvalue: Handle dependencies for typed values
Benjamin Otte [Mon, 27 Aug 2012 15:27:06 +0000 (17:27 +0200)]
css: Make color lookup handle dependencies
Matthias Clasen [Sat, 25 Aug 2012 15:22:14 +0000 (11:22 -0400)]
css: Handle some more simple cases of dependencies
Benjamin Otte [Fri, 24 Aug 2012 23:59:13 +0000 (01:59 +0200)]
cssvalue: First step of proper dependency tracking
Instead of using the EVERYTHING aka FIXME value for tdependencies,
actually compute the dependencies in a bunch of simple cases.
Benjamin Otte [Fri, 24 Aug 2012 16:17:52 +0000 (18:17 +0200)]
stylecontext: Update computed values when dependencies change
This fixes the longstanding bug where GTK would not update styles when
parent styles would change.
https://bugzilla.gnome.org/show_bug.cgi?id=672046
Benjamin Otte [Fri, 24 Aug 2012 16:17:07 +0000 (18:17 +0200)]
stylecontext: Refactor some code
This just changes the arguments passed to build_properties() and moves
that function around in the source file. No functional changes are
happening.
Benjamin Otte [Fri, 24 Aug 2012 15:31:57 +0000 (17:31 +0200)]
css: Pass relevant properties to css lookup code
This is not used yet in this patch.
Benjamin Otte [Fri, 24 Aug 2012 15:00:02 +0000 (17:00 +0200)]
computedvalues: Pass dependencies to set_value()
This simplifies the code.
Benjamin Otte [Fri, 24 Aug 2012 14:28:47 +0000 (16:28 +0200)]
stylecontext: Compute correct changes
... in the case where no change of the DOM tree actually happened.
We don't do anything yet with that information, this patch just
correctly computes it.
Benjamin Otte [Tue, 24 Jul 2012 14:22:06 +0000 (16:22 +0200)]
stylecontext: Split out a function for simplicity
Benjamin Otte [Mon, 23 Jul 2012 14:14:20 +0000 (16:14 +0200)]
cssomputedvalues: Track dependencies
We now track what values have dependencies on what other values so that
we could in theory recompute them when we need to.
Benjamin Otte [Wed, 18 Jul 2012 14:55:32 +0000 (16:55 +0200)]
stylecontext: Pass the changes in the parent to validation function
This way, inherited properties can be updated.
Benjamin Otte [Mon, 16 Jul 2012 12:48:43 +0000 (14:48 +0200)]
css: Introduce dependencies for value computations
When values are computed, they might depend on various other values and
we need to track this so we can update the values when those other
values change. This is the first step in making that happen.
This patch does not do any dependency tracking at all, instead it uses
GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.
Benjamin Otte [Tue, 17 Jul 2012 12:01:52 +0000 (14:01 +0200)]
css: Move computing of initial and inherit values
... to the compute vfunc. Simplifies code quite a bit. But makes the
code no longer a simple step-by-step implementation of the spec.
Benjamin Otte [Mon, 16 Jul 2012 12:28:58 +0000 (14:28 +0200)]
cssstyleproperty: Get rid of unused API
Both _gtk_css_style_property_print_value() and
_gtk_css_style_property_compute_value() aren't necessary anymore and are
replaced by _gtk_css_value_print() and _gtk_css_value_comptue()
respectively.
Benjamin Otte [Mon, 16 Jul 2012 12:15:19 +0000 (14:15 +0200)]
csscustomproperty: Move compute code to GtkCssTypedValue
This way, we don't need the print_value vfunc anymore.
Benjamin Otte [Mon, 16 Jul 2012 12:01:37 +0000 (14:01 +0200)]
cssstyleproperty: Don't set print or compute vfuncs anymore
Nobody does that these days.
Benjamin Otte [Mon, 16 Jul 2012 11:53:19 +0000 (13:53 +0200)]
cssstyleproperty: Remove all useless compute vfuncs
Now that we call _compute() by default, we don't need any special cases
anymore that do the same thing.
Benjamin Otte [Mon, 16 Jul 2012 11:47:04 +0000 (13:47 +0200)]
cssstyleproperty: Call _compute() in the compute function
... instead pof just reffing the value.
Benjamin Otte [Mon, 16 Jul 2012 11:42:18 +0000 (13:42 +0200)]
css: Move special case for 0px borders
This is in preparation for the next commits.
Benjamin Otte [Sat, 14 Jul 2012 18:24:46 +0000 (20:24 +0200)]
css: Fold color value computation into gtksymboliccolor.c
This gets rid of the public function
_gtk_css_rgba_value_compute_from_symbolic().
The fallback is now handled using a switch statement instead of letting
the caller pass the function.
Benjamin Otte [Thu, 12 Jul 2012 01:43:15 +0000 (03:43 +0200)]
css: Pass property_id to compute function
This is a reorganization of how value computing should be done.
Previously the GtkCssStyleProperty.compute vfunc was supposed to take
care of special cases when it needed those for computation. However,
this proved to be very complicated in cases where values were nested and
only the last value (of a common type) needed to be special cased.
A common example for this was the fallback handling for unresolvable
colors.
Now, we pass the property's ID along with all compute functions so we
can do the special casing where it's necessary.
Note that no actual changes happen in this commit. This will happen in
follow-ups.
Benjamin Otte [Wed, 11 Jul 2012 04:56:07 +0000 (06:56 +0200)]
css: Introduce _gtk_css_value_compute()
This commit is essentially a large reorganization. Instead of all value
subtypes having their own compute function, there is the general
_gtk_css_value_compute() function that then calls a vfunc on the
subtype.
Nilamdyuti Goswami [Mon, 27 Aug 2012 18:55:20 +0000 (00:25 +0530)]
Implemented FUEL entries to Assamese translation
Nilamdyuti Goswami [Mon, 27 Aug 2012 18:54:10 +0000 (00:24 +0530)]
Implemented FUEL entries to Assamese translation
Jiro Matsuzawa [Mon, 27 Aug 2012 15:03:02 +0000 (00:03 +0900)]
[l10n] Update Japanese translation
Kjartan Maraas [Mon, 27 Aug 2012 08:24:01 +0000 (10:24 +0200)]
Updated Norwegian bokmål translation
Adel Gadllah [Sun, 26 Aug 2012 22:48:43 +0000 (00:48 +0200)]
gkimmulticontext: Remove left over debug print
Remove the g_print debug statement from propagate_purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=682747
Tom Tryfonidis [Sun, 26 Aug 2012 20:05:07 +0000 (23:05 +0300)]
Updated Greek translations
Nilamdyuti Goswami [Sun, 26 Aug 2012 16:36:09 +0000 (22:06 +0530)]
Assamese translation updated
Nilamdyuti Goswami [Sun, 26 Aug 2012 16:29:27 +0000 (21:59 +0530)]
Assamese translation updated
William Jon McCann [Sun, 26 Aug 2012 14:52:08 +0000 (22:52 +0800)]
Fix a typo in the the comments
https://bugzilla.gnome.org/show_bug.cgi?id=682724
Piotr Drąg [Sun, 26 Aug 2012 12:52:56 +0000 (14:52 +0200)]
Updated Polish translation
Thomas Hindoe Paaboel Andersen [Sat, 25 Aug 2012 12:33:45 +0000 (14:33 +0200)]
Docs: GtkAspectFrame: use top/bottom for vertical alignment
Before left/right was used.
https://bugzilla.gnome.org/show_bug.cgi?id=682662
Timothy Arceri [Fri, 25 May 2012 03:12:36 +0000 (13:12 +1000)]
Use new printer setting to reduce code required by application
Updated demo to use new setting that allows an application to change the
output filename without the need to create the uri itself.
https://bugzilla.gnome.org/show_bug.cgi?id=676787
Matthias Clasen [Sat, 25 Aug 2012 19:40:50 +0000 (15:40 -0400)]
GtkIMMultcontext: Propagate input purpose and hints
The lack of this was pointed out by Carlos Garnacho in
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Carlos Garnacho [Fri, 24 Aug 2012 18:41:43 +0000 (20:41 +0200)]
Add GTK_INPUT_HINT_INHIBIT_OSK to GtkInputHints
This hint may be used in text widgets to inhibit their
input methods. The most compelling usecase is calculator
applications, which already have a builtin and better
suited onscreen keyboard.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Sat, 25 Aug 2012 18:24:20 +0000 (14:24 -0400)]
Trivial: Fix a whitespace messup
Pointed out by Carlos Garnacho in bug 651244.
Daniel Mustieles [Sat, 25 Aug 2012 10:08:08 +0000 (12:08 +0200)]
Updated Spanish translation
Nguyễn Thái Ngọc Duy [Sat, 25 Aug 2012 04:19:37 +0000 (11:19 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 25 Aug 2012 04:17:02 +0000 (11:17 +0700)]
po/vi: import from Damned Lies
Piotr Drąg [Fri, 24 Aug 2012 22:29:48 +0000 (00:29 +0200)]
Updated Polish translation
William Jon McCann [Thu, 23 Aug 2012 16:04:23 +0000 (12:04 -0400)]
Improve the layout of the mount operation dialog
This improves the layout of the mount operations dialog to:
* Make primary labels bold in all cases
* Lay out the widgets in a grid
* Put space between the two radio groups to distinguish them
https://bugzilla.gnome.org/show_bug.cgi?id=682552
Daniel Mustieles [Thu, 23 Aug 2012 15:42:22 +0000 (17:42 +0200)]
Updated Spanish translation
Alexander Larsson [Thu, 23 Aug 2012 13:59:33 +0000 (15:59 +0200)]
Remove gdk_window_flush_if_exposing as its not needed anymore
We no longer support modifying GdkWindow hierarchies during
expose events. This is not working anymore anyway as the
flush operation now does not push already rendered pixels
in the flushed window from the double buffer to the window.
https://bugzilla.gnome.org/show_bug.cgi?id=679144
Alexander Larsson [Thu, 23 Aug 2012 13:51:13 +0000 (15:51 +0200)]
Fix flashing in non-double-buffered widgets
Avoid copying back partially drawn double-buffer data
when flushing to avoid flicker. This means non double
buffered widgets must draw opaque pixels in its expose
handlers, and that you are not allowed to use direct
rendering (or modify GdkWindow pos/size/order) from
inside the expose handler of a double buffered widget.
See https://bugzilla.gnome.org/show_bug.cgi?id=679144 for more
details
Ryan Lortie [Thu, 23 Aug 2012 12:18:11 +0000 (08:18 -0400)]
GtkWidget: fix insert_action_group(NULL)
gtk_widget_insert_action_group (widget, "foo", NULL) is valid, but
g_action_muxer_insert (muxer, "foo", NULL) is not. Use
g_action_muxer_remove() for that case.
Alexander Larsson [Thu, 23 Aug 2012 09:59:00 +0000 (11:59 +0200)]
gdkwindow.c: Fix up window debug code
Make this build and fully print clip regions.
Alexander Larsson [Wed, 22 Aug 2012 15:01:15 +0000 (17:01 +0200)]
Avoid unnecessary window flushes
The code was calling _gdk_window_ref_cairo_surface in a few places
where the intent was not to read/write to the surface, but just look
at its type (to e.g. create a similar surface). This is bad, as that
operation causes a flush which may cause unnecessary work and/or
flashing. Instead we just get the impl surface in these cases.
Chao-Hsiung Liao [Thu, 23 Aug 2012 07:40:42 +0000 (15:40 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Michael Natterer [Thu, 23 Aug 2012 07:28:13 +0000 (09:28 +0200)]
quartz: add evil casting to make sure time wraps correctly on 32bit machines
get_time_from_ns_event(): apply patch from Michael Hutchinson which
makes sure the returned guint32 wraps correctly on 32 bit machines
when the uptime exceeds 2^32 ms.
Piotr Drąg [Wed, 22 Aug 2012 22:01:33 +0000 (00:01 +0200)]
Updated Polish translation
John Ralls [Wed, 22 Aug 2012 21:38:53 +0000 (14:38 -0700)]
Protect pasteboard GtkTargetPair flag values from being out of range
John Ralls [Thu, 26 Jul 2012 22:21:02 +0000 (15:21 -0700)]
Implement gdk_quartz_keymap_lookup_key
John Ralls [Mon, 16 Jul 2012 22:09:28 +0000 (15:09 -0700)]
Copy in annotations missing from gtkdnd-quartz and gtkclipboard-quartz
Alexandre Franke [Wed, 22 Aug 2012 14:22:06 +0000 (16:22 +0200)]
Update French translation
Alexandre Franke [Wed, 22 Aug 2012 13:37:11 +0000 (15:37 +0200)]
Fix French translation
Kjartan Maraas [Wed, 22 Aug 2012 08:29:59 +0000 (10:29 +0200)]
Updated Norwegian bokmål translation
Ryan Lortie [Wed, 22 Aug 2012 04:54:57 +0000 (00:54 -0400)]
GtkActionHelper: two small fixups in _set_target_value()
First, ensure we always consume floating values, as documented.
Second (and more serious), don't try to query the action if the
action name is not set yet. This will cause crashes...
Nguyễn Thái Ngọc Duy [Wed, 22 Aug 2012 02:02:05 +0000 (09:02 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Wed, 22 Aug 2012 01:59:12 +0000 (08:59 +0700)]
po/vi: imported from Damned Lies
William Jon McCann [Fri, 10 Aug 2012 17:41:48 +0000 (13:41 -0400)]
Don't left align label in check buttons when they have no indicator
Because they should be normal buttons in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=681617
Cosimo Cecchi [Tue, 21 Aug 2012 09:15:32 +0000 (11:15 +0200)]
modelmenu: fix a GCC warning
This should not be a const string, since the caller is supposed to free
it.
Cosimo Cecchi [Tue, 21 Aug 2012 09:14:46 +0000 (11:14 +0200)]
textview: fix a typo in method gtk-doc annotation
This was causing a warning from the introspection scanner.
Cosimo Cecchi [Tue, 21 Aug 2012 09:14:16 +0000 (11:14 +0200)]
menubutton: use consistent parameter names
Or the introspection scanner will emit a warning.
Andika Triwidada [Tue, 21 Aug 2012 05:21:01 +0000 (12:21 +0700)]
Updated Indonesian translation for Property Nicks
Dirgita [Tue, 21 Aug 2012 05:20:22 +0000 (12:20 +0700)]
Updated Indonesian translation
Matthias Clasen [Tue, 21 Aug 2012 04:50:07 +0000 (00:50 -0400)]
Bump version
Matthias Clasen [Tue, 21 Aug 2012 02:12:03 +0000 (22:12 -0400)]
3.5.12
Matthias Clasen [Tue, 21 Aug 2012 03:37:43 +0000 (23:37 -0400)]
Fix the doc build
Matthias Clasen [Tue, 21 Aug 2012 03:37:26 +0000 (23:37 -0400)]
Fix exports for new symbols
Matthias Clasen [Thu, 16 Aug 2012 18:27:27 +0000 (14:27 -0400)]
Add documentation
Document the new API and properties, and their interaction with
existing properties.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 18:29:38 +0000 (14:29 -0400)]
GtkTextView: Add input purpose and hints
Add input-purpose and input-hints properties and pass these through
to the GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 18:27:51 +0000 (14:27 -0400)]
GtkEntry: Add input purpose and hints
Add input-purpose and input-hints properties to GtkEntry,
and pass these on to GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 05:36:59 +0000 (01:36 -0400)]
GtkIMContext: Add purpose and hints
Add input-purpose and input-hints properties to GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Krzesimir Nowak [Tue, 29 May 2012 14:19:49 +0000 (16:19 +0200)]
enums: Add purpose enum and hints flags.
This commit adds two enumerations that will be used
to pass additional information to input methods, in
the subsequent commits.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Ryan Lortie [Mon, 20 Aug 2012 21:03:15 +0000 (17:03 -0400)]
GtkMenuButton: rename _set_menu() to _set_popup()
It's too close to the release so we'll keep _set_menu() around, but
deprecate it, pointing to the new API. It will be removed (and the name
reused) before the 3.6.0 release.
https://bugzilla.gnome.org/show_bug.cgi?id=682235
Aurimas Černius [Mon, 20 Aug 2012 20:26:17 +0000 (23:26 +0300)]
Updated Lithuanian translation
Piotr Drąg [Mon, 20 Aug 2012 19:53:00 +0000 (21:53 +0200)]
Updated POTFILES.skip
Daniel Mustieles [Mon, 20 Aug 2012 18:05:05 +0000 (20:05 +0200)]
Updated Spanish translation
William Jon McCann [Fri, 10 Aug 2012 17:23:20 +0000 (13:23 -0400)]
icon-view: emit selection-changed when changing the model
Only if there was a selection active.
https://bugzilla.gnome.org/show_bug.cgi?id=681613
Cosimo Cecchi [Mon, 20 Aug 2012 17:16:32 +0000 (19:16 +0200)]
visuals: add a visual test for suggested-action buttons
And selection-mode toolbars.
Lars Uebernickel [Wed, 20 Jun 2012 14:56:56 +0000 (16:56 +0200)]
gtkmodelmenu: add support for action namespaces
If a section or submenu item has a "action-namespace" attribute, the
action names of the created GtkModelMenuItems will be prefixed with that
namespace. Namespaces can be cascaded.
Ryan Lortie [Sat, 18 Aug 2012 03:28:53 +0000 (23:28 -0400)]
GtkApplicationWindow: drop GActionMuxer use
There are no remaining users of the GActionMuxer in GtkApplicationWindow
because they've all been ported over to using the one on GtkWidget (via
GtkActionHelper, for the most part).
Ryan Lortie [Sat, 18 Aug 2012 03:28:08 +0000 (23:28 -0400)]
Drop GSimpleActionObserver
The only place that this was being created was in GtkApplicationWindow
and the last commit dropped that code.
Ryan Lortie [Sat, 18 Aug 2012 03:26:44 +0000 (23:26 -0400)]
Remove private appwindow observer creation API
There are no remaining users of the GtkApplicationWindow API to create
GSimpleActionObserver or to get the GActionObservable (ie: muxer) for
the appwindow. Drop those APIs.
Lars Uebernickel [Sat, 18 Aug 2012 03:23:51 +0000 (23:23 -0400)]
ApplicationWindow: setup accels with widget muxer
Use the muxer from GtkWidget to setup the accels rather than our own
local muxer (which will soon be removed).
Ryan Lortie [Sat, 18 Aug 2012 03:21:33 +0000 (23:21 -0400)]
Remove #include for muxer from gtkapplication.c
William Hua [Sat, 18 Aug 2012 03:19:57 +0000 (23:19 -0400)]
Action helper support in Mac OS menus.
Ryan Lortie [Sat, 18 Aug 2012 03:13:42 +0000 (23:13 -0400)]
gtkmodelmenu: move to new action regime
Drop the explicit passing of GActionGroup into the GtkMenu(Bar)
constructors and operate from the action context instead.
With GtkMenuItem implementing GtkActionable, this turns out to be pretty
easy (and most of the code can be removed from GtkModelMenuItem,
including the GActionObserver implementation).
Ryan Lortie [Sat, 18 Aug 2012 03:01:53 +0000 (23:01 -0400)]
GtkMenuItem: implement GtkActionable
...using the new GtkActionHelper